def create_app():
    app = ...
    # existing code omitted

    from . import api
    app.register_blueprint(api.bp)

    return app